{$xp_currentnav_html.'<!--END-->'}
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Taskcls')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-taskcls" class="form-control" name="row[taskcls]" type="text"
                value="{$row.taskcls|htmlentities}" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Taskmethod')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-taskmethod" class="form-control" name="row[taskmethod]" type="text"
                value="{$row.taskmethod|htmlentities}" data-rule="required">
        </div>
        <div class="col-xs-12 col-sm-2">
            <button type="button" id="testCrontaskBtn" class="btn btn-default btn-embossed">测试</button>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cronexpression')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cronexpression" class="form-control" name="row[cronexpression]" type="text"
                value="{$row.cronexpression|htmlentities}" data-rule="required">
        </div>
        <div class="col-xs-12 col-sm-2">
            <button type="button" id="testCronexpressionBtn" class="btn btn-default btn-embossed">测试</button>
        </div>
    </div>
    {if isset($row['id'])}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Nextruntime1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-nextruntime1" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss"
                data-use-current="true" name="row[nextruntime1]" type="text"
                value="{:$row.nextruntime1?datetime($row.nextruntime1):''}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Nextruntime2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-nextruntime2" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss"
                data-use-current="true" name="row[nextruntime2]" type="text"
                value="{:$row.nextruntime2?datetime($row.nextruntime2):''}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Nextruntime3')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-nextruntime3" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss"
                data-use-current="true" name="row[nextruntime3]" type="text"
                value="{:$row.nextruntime3?datetime($row.nextruntime3):''}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lastrun_issuccess')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select id="c-lastrun_issuccess" class="form-control selectpicker" name="row[lastrun_issuccess]">
                {foreach name="lastrunIssuccessList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.lastrun_issuccess"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lastresult')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lastresult" class="form-control" name="row[lastresult]" type="number" value="{$row.lastresult|htmlentities}">
        </div>
    </div>
    {/if}
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-source="user/user/index" data-field="nickname" class="form-control selectpage"
                name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
        </div>
    </div> 
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio"
                        value="{$key}" {in name="key" value="$row.status" }checked{/in} disabled/> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" id="saveBtn" class="btn btn-primary btn-embossed disabled">保存</button>
            <button type="submit" id="submitBtn" class="btn btn-success btn-embossed disabled">提交</button>
        </div>
    </div>

</form>